package Entity;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(schema="poleinfodb", name = "stockOption")
@PrimaryKeyJoinColumn(name="ID_CONTRACT")
public class StockOption extends Contract {
	
	@Basic(optional=false)
	private double strike;
	@Basic(optional=false)
	private double price;
	
	
	public StockOption(int id_Contract, Society society, Offer offer,
			Investor investor, String name, double open, double close,
			double high, double low, double strike, double price) {
		super(id_Contract, society, offer, investor, name, open, close, high,
				low);
		this.strike = strike;
		this.price = price;
	}
	
	public StockOption( Society society, Offer offer,
			Investor investor, String name, double open, double close,
			double high, double low, double strike, double price) {
		super(society, offer, investor, name, open, close, high,
				low);
		this.strike = strike;
		this.price = price;
	}


	public double getStrike() {
		return strike;
	}


	public void setStrike(double strike) {
		this.strike = strike;
	}


	public double getPrice() {
		return price;
	}


	public void setPrice(double price) {
		this.price = price;
	}
	
	
	
	
	

	
	
	
}
